package com.mdd.admin.vo.order;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mdd.common.entity.order.OrderItem;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@ApiModel("订单列表Vo")
public class OrderInfoListedVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "订单id")
    private Long id;
    @ApiModelProperty(value = "商家id")
    private Long deptId;
    @ApiModelProperty(value = "门店id")
    private Long storeId;

    @ApiModelProperty(value = "用户编号")
    private Long userId;
    @ApiModelProperty(value = "订单编号")
    private String orderSn;
    @ApiModelProperty(value = "订单总金额")
    private BigDecimal totalAmount;
    @ApiModelProperty(value = "应付金额（实际支付金额）")
    private BigDecimal payAmount;
    @ApiModelProperty(value = "支付方式：0->未支付；1->支付宝；2->微信")
    private Integer payType;
    @ApiModelProperty(value = "订单来源：0->PC订单；1->app订单")
    private Integer sourceType;
    @ApiModelProperty(value = "订单状态：0待支付 1待签约 2车辆准备中3待提车4租赁中5待结算6待确认7已完成8已取消")
    private Integer status;
    @ApiModelProperty(value = "订单类型：0->购物订单；1->租赁订单")
    private Integer orderType;
    @ApiModelProperty(value = "订单备注")
    private String note;
    @ApiModelProperty(value = "支付时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date paymentTime;
    @ApiModelProperty(value = "订单详情")
    OrderItem orderItem;
    @ApiModelProperty(value = "租赁详情")
    OrderLeaseDetailVo orderLeaseDetail;
}
